package com.ylc.ylcapiinterface;

import com.ylcapi.ylcapiclientsdk.client.YlcApiClient;
import com.ylcapi.ylcapiclientsdk.model.User;

/**
 * @Author: ylc
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        String accessKey = "ylc";
        String secretKey = "abcdefg";
        YlcApiClient client = new YlcApiClient(accessKey, secretKey);
        String result1 = client.getNameByGet("红叶");
        String result2 = client.getNameByPost("红叶");
        User user = new User();
        user.setUsername("redleaf");
        String result3 = client.getUsernameByPost(user);
        System.out.println(result1);
        System.out.println(result2);
        System.out.println(result3);
    }
}
